package authority.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 
 * @author shichenyang
 *
 */
public class User implements java.io.Serializable {

	private static final long serialVersionUID = 1179176049965696632L;
	private String id;//
	private String name;//员工登录使用的账号
	private String realName;//真实姓名
	private String password;//密码
	private String deptId;//部门ID
	private String roleId;//角色ID
	@JSONField(format="yyyy-MM-dd")
	private Date birthday;//生日
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date createTime;//创建时间
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;//更新时间
	private String oper;//操作人ID
	private String status;//状态，0离职，1以上在职，2是实习
	
	//------- 拓展 -------
	private List<String> permissions=new ArrayList<String>();//权限URL
	private List<String> pid=new ArrayList<String>();//权限HTML id
	private String deptName;
	private String roleName;

	public User() {
	}

	public User(String id, String name, String realName, String password, String deptId, String roleId, Date birthday, Date createTime, Date updateTime, String oper, String status, List<String> permissions, List<String> pid, String deptName, String roleName) {
		this.id = id;
		this.name = name;
		this.realName = realName;
		this.password = password;
		this.deptId = deptId;
		this.roleId = roleId;
		this.birthday = birthday;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.oper = oper;
		this.status = status;
		this.permissions = permissions;
		this.pid = pid;
		this.deptName = deptName;
		this.roleName = roleName;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getOper() {
		return oper;
	}

	public void setOper(String oper) {
		this.oper = oper;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public List<String> getPermissions() {
		return permissions;
	}

	public void setPermissions(List<String> permissions) {
		this.permissions = permissions;
	}

	public List<String> getPid() {
		return pid;
	}

	public void setPid(List<String> pid) {
		this.pid = pid;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
}